package com.example.system.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
* <p>
* 用户表
* </p>
*
* @author 龙茶清欢
* @since 2025-02-17
*/
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "创建用户表请求参数")
public class UserDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;

    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;

    /**
     * 性别(1-男 2-女)
     */
    @Schema(description = "性别(1-男 2-女)")
    private Byte gender;

    /**
     * 昵称
     */
    @Schema(description = "昵称")
    private String nickName;

    /**
     * 个人头像
     */
    @Schema(description = "个人头像")
    private String avatar;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * 出生年月日
     */
    @Schema(description = "出生年月日")
    private Date birthday;

    /**
     * 手机
     */
    @Schema(description = "手机")
    private String mobile;

    /**
     * 自我简介
     */
    @Schema(description = "自我简介")
    private String description;

    /**
     * 登录次数
     */
    @Schema(description = "登录次数")
    private Integer loginCount;

    /**
     * 最后登录时间
     */
    @Schema(description = "最后登录时间")
    private Date lastLoginTime;

    /**
     * 最后登录IP
     */
    @Schema(description = "最后登录IP")
    private String lastLoginIp;

    /**
     * ip来源
     */
    @Schema(description = "ip来源")
    private String ipSource;

    /**
     * 浏览器
     */
    @Schema(description = "浏览器")
    private String browser;

    /**
     * 操作系统
     */
    @Schema(description = "操作系统")
    private String os;

    /**
     * 随机盐
     */
    @Schema(description = "随机盐")
    private String salt;

    /**
     * 状态(0-开启 1-关闭)
     */
    @Schema(description = "状态(0-开启 1-关闭)")
    private Byte status;

    /**
     * 逻辑删除(0-正常 1-删除)
     */
    @Schema(description = "逻辑删除(0-正常 1-删除)")
    private Byte deleted;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Date updateTime;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private String updateBy;

}
